package com.kj.platformlogistics.my.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.kj.platformlogistics.R;
import com.kj.platformlogistics.base.BaseActivity;
import com.kj.platformlogistics.common.UserData;

public class ActivityDriverInfo extends BaseActivity implements View.OnClickListener {
    private ImageView ivDriverCardFront,ivDriverCardBg;

    public static void actionStart(Context context) {
        Intent intent = new Intent(context, ActivityDriverInfo.class);
        context.startActivity(intent);
    }

    @Override
    public void onClick(View v) {

    }

    @Override
    protected void init(Bundle savedInstanceState) {
        setAndroidNativeLightStatusBar(true);
    }

    @Override
    protected int setLayoutResourceID() {
        return R.layout.activity_driver_info;
    }

    @Override
    protected void initView() {
        setTitleText("驾驶证认证");
        ivDriverCardFront=findViewById(R.id.ivDriverCardFront);
        ivDriverCardBg=findViewById(R.id.ivDriverCardBg);


        Glide.with(ActivityDriverInfo.this).
                load(UserData.create(ActivityDriverInfo.this).get(UserData.driverLicenceFront))
                .placeholder(R.mipmap.icon_idcard_front)
                .into(ivDriverCardFront);

        Glide.with(ActivityDriverInfo.this).
                load(UserData.create(ActivityDriverInfo.this).get(UserData.driverLicenceContrary))
                .placeholder(R.mipmap.icon_idcard_bg)
                .into(ivDriverCardBg);


    }

    @Override
    protected void initData() {

    }


    @Override
    protected int getTitleBarType() {
        return 0;
    }
}
